package com.yida.gwj.report.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author lqq
 * @date 2024-02-28
 */
@ApiModel("系统结息列表DTO")
public class GwjSysCalculateRateListDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;
    
    /** 地区ID */
    @Excel(name = "地区ID")
    private Long areaId;

    /**
     * 结算日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("结算日期")
    private LocalDate calculateTime;

    /**
     * 年增值收益（政府当次待分配利息）
     */
    @ApiModelProperty("年增值收益")
    private BigDecimal yearBenefit;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private String status;

    /**
     * 年利率（个人日利率*365）
     */
    @ApiModelProperty("年利率")
    private BigDecimal dayRate;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;
    
    /** 字符串年利率 */
    private String dayRateStr;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setCalculateTime(LocalDate calculateTime) {
        this.calculateTime = calculateTime;
    }

    public LocalDate getCalculateTime() {
        return calculateTime;
    }

    public void setYearBenefit(BigDecimal yearBenefit) {
        this.yearBenefit = yearBenefit;
    }

    public BigDecimal getYearBenefit() {
        return yearBenefit;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDayRate(BigDecimal dayRate) {
        this.dayRate = dayRate;
    }

    public BigDecimal getDayRate() {
        return dayRate;
    }

    public String getDayRateStr() {
		return dayRateStr;
	}

	public void setDayRateStr(String dayRateStr) {
		this.dayRateStr = dayRateStr;
	}
	
	public Long getAreaId() {
		return areaId;
	}

	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}

	@Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GwjSysCalculateRateQueryRequest{");
        sb.append("calculateTime=").append(calculateTime);
        sb.append(", yearBenefit=").append(yearBenefit);
        sb.append(", status='").append(status).append('\'');
        sb.append(", dayRate=").append(dayRate);
        sb.append('}');
        return sb.toString();
    }
}
